<template>
  <component :is="showWhat"></component>
</template>
<script>
import { isMobile } from '@/utils'
import mp from './m'
import pc from './pc'

export default {
  components: {
    mp,
    pc
  },
  data() {
    return {
      showWhat: 'mp'
    }
  },
  mounted() {
    if (isMobile()) {
      this.showWhat = 'mp'
    } else {
      this.showWhat = 'pc'
    }
  }
}
</script>
